﻿using System;
using System.Web.Security;

namespace Fuse8.ContentManagementFramework.Web.ApplicationRuntime
{
    public class FormsAuthenticationService : IFormsAuthenticationService
    {
        #region IFormsAuthenticationService Members

        public string DefaultUrl
        {
            get 
            {
                return FormsAuthentication.DefaultUrl;
            }
        }
        
        public void SignIn(string userName, bool createPersistentCookie)
        {
            FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
        }

        public void SignOut()
        {
            FormsAuthentication.SignOut();
        }

        #endregion
    }
}
